package com.tangdi.production.mpcctp.controller;

import com.alibaba.fastjson.JSON;
import com.tangdi.production.mpaychl.dao.AllpayReqContentMapper;
import com.tangdi.production.mpaychl.model.AllpayReqContent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MonitorController {
    private static final Logger log = LoggerFactory.getLogger(MonitorController.class);

    @Autowired
    private AllpayReqContentMapper reqContentMapper;

    @RequestMapping("/monitorDb")
    @ResponseBody
    public String monitorDb(){

        AllpayReqContent allpayReqContent = reqContentMapper.selectByPrimaryKey(1);

        return JSON.toJSONString(allpayReqContent);
    }

}
